package top.wenzz.manage.system.manage.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import top.wenzz.commons.vo.RetMsg;
import top.wenzz.manage.system.manage.entity.SysModule;
import top.wenzz.manage.system.manage.service.SysModuleService;
import top.wenzz.commons.web.BasicCrudController;

/**
 * 系统模块controller
 * Created by 钟廷员 on 2016/12/15.
 */
@RestController
@RequestMapping("sys/module")
public class SysModuleController extends BasicCrudController<SysModule, SysModuleService> {
    @RequestMapping( value = "allQuery", method = RequestMethod.POST )
    public Object find() {
        return RetMsg.success(service.findAll());
    }
}
